package exceptions;

import be.kuleuven.cs.som.annotate.Basic;
import be.kuleuven.cs.som.annotate.Immutable;
import be.kuleuven.cs.som.annotate.Raw;

public class IllegalPlacementException extends RuntimeException{
	
    /**
     * Initialize this new illegal name exception with given name.
     *
     * @param   name
     *          The name for this new illegal name exception.
     * @post    The name for this new illegal name exception
     *          is equal to the given name.
     *        | new.getName().equals(name)
     */
    @Raw
    public IllegalPlacementException(String name) {
        this.name = name;
    }

    /**
     * Return the name of this illegal name exception.
     */
    @Basic
    @Immutable
    public String getName() {
        return this.name;
    }

    /**
     * Variable registering the name of this illegal name exception.
     */
    private final String name;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

}
